FROM ubuntu:20.04
RUN apt-get -qq update \
    && apt-get -qq install -y --no-install-recommends ca-certificates curl
RUN echo 'Asia/Shanghai' >/etc/timezone

VOLUME /cgs/build/public/Upload
COPY cgs-server /cgs/cgs-server
COPY configs/cgs-server.yaml /cgs/configs/cgs-server.yaml
RUN ["chmod", "+x", "/cgs/cgs-server"]
CMD ["/cgs/cgs-server","-c","/cgs/configs/cgs-server.yaml"]
